<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $_META_TITLE;?></title>
<meta name="key" content="<?php echo $_META_KEYWORD;?>">
<meta name="description" content="<?php echo $_META_DESC;?>">
<?php
if( !empty($cssFiles) ){
    if ( is_array($cssFiles) ){
        foreach( $cssFiles as $filename ){
            $filename = _CSS_URL . $filename;
            echo '<link type="text/css" rel="stylesheet" href="'.$filename.'"></script>';
        }
    }else{
            $filename = _CSS_URL . $cssFiles;
            echo '<script type="text/javascript" src="'.$filename.'"></script>';
    }
}

if( !empty($jsFiles) ){
    if ( is_array($jsFiles) ){
        foreach( $jsFiles as $filename ){
            $filename = _JS_URL . $filename;
            echo '<script type="text/javascript" src="'.$filename.'"></script>';
        }
    }else{
            $filename = _JS_URL . $jsFiles;
            echo '<script type="text/javascript" src="'.$filename.'"></script>';
    }
}
?>
</head>
<body <? if($module == 'home') echo 'id="home1"';?> <?=$bodyOnLoad?> >
<div id="bodyconatiner" class="rel">
<?php
require_once _SITE_TPL_PATH_.$_HEADER_TPL_;
if( !empty($_tplName) ){
	if ( is_array($_tplName) ){
		foreach( $_tplName as $tpl ){
			require_once _SITE_TPL_PATH_.$tpl;
		}
	}else{
		require_once _SITE_TPL_PATH_.$_tplName;
	}
}
?>
</div>
<?php
require_once _SITE_TPL_PATH_.$_FOTTER_TPL_;
?>
</body>
</html>
